﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Picture_Manage_Dialog.aspx.cs"
    Inherits="V5_EShop.Admin.Picture.Picture_Manage_Dialog"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <style type="text/css">
        body { font-size: 12px; }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <table cellpadding="0" cellspacing="0">
        <tr>
            <td colspan="2">
                <asp:Label ID="lbl" runat="server" Text="图片管理"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;图片目录
            </td>
            <td>
                &nbsp;<asp:DropDownList ID="ddlSelectPicPath" runat="server" AutoPostBack="True"
                    OnSelectedIndexChanged="ddlSelectPicPath_SelectedIndexChanged">
                </asp:DropDownList>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td colspan="2">
                上传文件:<input id="FileUploadGo" type="file" runat="server" />&nbsp;<asp:Button ID="btnUpload"
                    runat="server" Text="上传文件" OnClick="btnUpload_Click" />
            </td>
        </tr>
    </table>
    <asp:DataList ID="dlPicList" runat="server" RepeatColumns="6" HorizontalAlign="Center">
        <ItemTemplate>
            <table>
                <tr>
                    <td>
                        <center>
                            <div style="width: 92px; height: 92px;">
                                <div style="width: 90px; height: 90px; margin: 1px; background: #ffffff">
                                    <img alt="" id='img_<%# Bind_Pic(DataBinder.Eval(Container.DataItem,"Name"))%>' style="padding: 1px 0 0 1px;
                                        cursor: pointer;" title='双击选择该图片,该图片地址为:UploadFiles/<%# Bind_PicPath(DataBinder.Eval(Container.DataItem,"Name"))}'
                                        border="0" src='/UploadFiles/<%# Bind_PicPath(DataBinder.Eval(Container.DataItem,"Name"))}' ondblclick="parent.InitPicture(this)" onmousemove="this.parentNode.parentNode.style.backgroundColor='#006699'"
                                        onmouseout="this.parentNode.parentNode.style.backgroundColor='white';" height="80px" width="80px" />
                                </div>
                            </div>
                        </center>
                    </td>
                </tr>
            </table>
        </ItemTemplate>
    </asp:DataList>
    <webdiyer:AspNetPager ID="Pager" runat="server" AlwaysShow="True" CustomInfoHTML="共%PageCount%页，当前为第%CurrentPageIndex%页，每页%PageSize%条"
        FirstPageText="首页" HorizontalAlign="Right" LastPageText="尾页" NextPageText="下一页"
        OnPageChanged="Pager_PageChanged" PageIndexBoxType="DropDownList" PageSize="18"
        PrevPageText="上一页" ShowCustomInfoSection="Left" ShowPageIndexBox="Always" SubmitButtonText="Go"
        TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到">
    </webdiyer:AspNetPager>
    </form>
</body>
</html>
